package jonggyuni.basic;

public class J02_Arithmathic {

	public static void main(String[] args) {

		double number = (1.0/3.0*3.0);//산술 할때는  double이나 float를 자제하라.
		int quotient = 7/3;
		int remainder = 7%3;
		int result = 11;
		result /= 2;
		
		System.out.println("num : " + number);// 책 p.73 자료형 변환
		//실수리터럴 적용.
		System.out.println(((float)1 / 3) * 3);
		System.out.println((1F / 3)* 3);
		System.out.println("quo : " + quotient);
		System.out.println("rem : " + remainder);
		System.out.println("res : " + result);
		
	}

}
